Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix incorrect alpha value update of InteractiveFrame #1297

Merged
merged 3 commits into from
Apr 29, 2019
Merged

Conversation

jslee02
Copy link
Member

@jslee02 jslee02 commented Apr 29, 2019

As reported in #1217, InteractiveFrame doesn't display correctly. This is because the element access operator of aiColor4D with index 3 doesn't point to the alpha component but interestingly red component.

This PR workaround by using the member variable instead. It'd be ideal to be fixed in the upstream though.

image

Fixes #1217.


Before creating a pull request

  • Document new methods and classes
  • Format new code files using clang-format

Before merging a pull request

  • Set version target by selecting a milestone on the right side
  • Summarize this change in CHANGELOG.md
  • Add unit test(s) for this change (visually checked)

@jslee02 jslee02 added this to the DART 6.9.0 milestone Apr 29, 2019
@jslee02 jslee02 marked this pull request as ready for review April 29, 2019 04:58
@mxgrey
Copy link
Member

mxgrey commented Apr 29, 2019

Oh wow, great catch! It seems the original implementation was a bit more sensible.

I guess the change was an attempt to thwart undefined behavior, but I think that motivation was a bit misguided considering the result.

@jslee02
Copy link
Member Author

jslee02 commented Apr 29, 2019

Yeah, motivation was good but the change was accompanied with a silent error.

@jslee02 jslee02 merged commit e74fb3e into master Apr 29, 2019
@jslee02 jslee02 deleted the interactive_frame branch April 29, 2019 12:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

InteractiveFrames no longer display correctly
2 participants